package thefirst.addresscode.model;

import java.sql.SQLException;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
@Service
public class AddressCodeServiceImpl implements AddressCodeService {
	@Resource(name="addressCodeDaoImpl")
	private AddressCodeDao addressCodeDao;
	@Override
	public List<AddressCodeVO> findAddressByZipcode(String dong) throws SQLException {
		System.out.println("address service dong:"+dong);
		List<AddressCodeVO> list=addressCodeDao.findAddressByZipcode(dong);
		System.out.println("address service list:"+list);
		return list;
	}

}
